package com.gxa.dao;

import com.gxa.pojo.CarBill;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarBillMapper {

    @Insert("insert into carbill values(#{ownerName},#{carNumber},#{carType},#{carVersion},#{brand},#{startTime},#{endTime},#{payOrNot},#{payVoucher},#{paymentAmount},#{record})")
    public int insertCarBill(CarBill carBill);

//    @Select("select * from carbill")
    public List<CarBill> selectAllCarBill();

    public int deleteCarBillByCarOwner(String carOwner);

    public int batchDeleteCarBill(String [] carOwners);
}
